package util;

import java.io.Serializable;

public class Pair<T1,T2> implements Serializable
{
    public T1 first;
    public T2 second;
    
    public Pair(T1 a, T2 b)
    {
      this.first = a;                
      this.second = b;
    }
    
    public void set(T1 a, T2 b)
    {
        this.first = a;                
        this.second = b;
    }

    public String toString()
    { 
      return "(" + first + "," + second + ")";
    }
    
    
}
